package com.estate.mapper;

import com.estate.pojo.Region;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RegionMapper {
	
	//根据项目id查找区域表中的区域编号 
	public List<Region> findCodeByProId(Integer ProId) throws Exception;
	
	//根据分期项目id查询区域的集合
	public List<Region> findRegionByDetilId(Integer detilId) throws Exception;
	
	//根据detil主键查找region的主键
	public Integer findRegionIdByDetilId(Integer detilId) throws Exception;

    int deleteByPrimaryKey(Integer regId) throws Exception;

    //添加区域
    int insert(Region record) throws Exception;

    int insertSelective(Region record) throws Exception;

    Region selectByPrimaryKey(Integer regId) throws Exception;

    int updateByPrimaryKeySelective(Region record) throws Exception;

    int updateByPrimaryKey(Region record) throws Exception;
}